package com.eastjet.maintenance.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eastjet.maintenance.domain.Annex;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
* @author 杨博文
* @description 针对表【annex(随附附件表)】的数据库操作Service
* @createDate 2024-11-25 09:23:37
*/
public interface AnnexService extends IService<Annex> {

    /**
     * 新增附件
     * @param an
     * @return
     */
    @Transactional(rollbackFor = Exception.class)
    Boolean InsertAnnex(List<Annex> an);

    /**
     * 修改附件
     * @param an
     * @return
     */
    Boolean UpdateAnnex(Annex an);

    //删除附件
    Boolean DeleteAnnex(List<String> code);

}
